package com.iss.demo.dao;

import com.iss.demo.entity.SaleCount;
import com.iss.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SaleCountDao {
    @Select("select * from salecount")
    public List<SaleCount>selectAll();

    @Select("select * from salecount where s_id=#{s_id}")
    public SaleCount selectById(Integer s_id);


    @Update("update salecount set s_count=#{s_count} where s_id=#{s_id}")
    Integer update(SaleCount saleCount);
}
